<!DOCTYPE html>  
<html>  
  <head>  
    <title>Operators</title>  
  </head>
  <body>  
    <script type="text/javascript">  
       var x = 5;
       x += 3;
       document.write("x += 3 " + x + "<br>");
       
       x = 5;
       x -= 3;
       document.write("x -= 3 " + x + "<br>");
       
       x = 5;
       x *= 3;
       document.write("x *= 3 " + x + "<br>");
       
       x = 5;
       x /= 3;
       document.write("x /= 3 " + x + "<br>");
       
       x = 5;
       x %= 3;
       document.write("x %= 3 " + x + "<br>");
             
    </script> 
  </body>  
</html>